package com.example.librarymanagement.mapper;

import com.example.librarymanagement.model.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {
    @Select("SELECT * FROM Admins WHERE admin_name = #{adminName} AND password = #{password}")
    Admin findAdminByNameAndPassword(String adminName, String password);
}